package com.ijuit.business;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;




public class BusinessServiceImpl<T> implements BusinessService<T> {

	@Override
	public void add(T t) throws Exception {
		
	}

	@Override
	public void edit(T t) throws Exception {
		Db.save("user", (Record) t);
	}

	@Override
	public T view(int id) throws Exception {
		return null;
	}

	@Override
	public void deleteById(int id) throws Exception {
	}

	//@Override
	//public Page<T> select(Search<?> search, Pager pager) throws Exception {
	//	return null;
	//}

}
